package com.campus_information_portal.service.impl;

import com.campus_information_portal.dao.UserDao;
import com.campus_information_portal.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Y-Rainson
 * @create 2018-03-16 16:14
 **/

@Service
public class UserImpl implements UserService {
    @Autowired
    private UserDao userDao;

    public boolean login(String username, String userpassword) {
        if (userDao.login(username, userpassword)) {
            System.out.println("登录成功");
            return true;
        } else
            System.out.println("登录失败");
        return false;
    }
}
